import request from '@/utils/request';

//  获取管理员token
export async function getTokens(params) {
  return request('/api/v2/admin/token', {
    method: 'POST',
    body: params,
  });
}
//  获取管理员权限
export async function getCurrentAuthorities(params) {
  return request('/api/v2/admin/authorities', {
    method: 'get',
    headers: { 'Content-Type': 'application/json', Token: params },
  });
}
